#ifndef PLANETTOOLBAR_H
#define PLANETTOOLBAR_H

#include "Gui.hh"
#include <QtGui/QWidget>
#include "ui_PlanetToolbar.h"
#include "Csillag.hh"
#include "Bolygo.hh"
# include "../Network/StateChanged.hh"

class Gui::PlanetToolbar : public QWidget {
    Q_OBJECT

    private: Ui::PlanetToolbarClass ui;
    protected: u8 starId;
    protected: Bolygo* selectedPlanet;

    public: PlanetToolbar(QWidget *parent = 0);
    public: ~PlanetToolbar();

    public: void clear();
    public: void showStar(Csillag*);

    signals: void planet_selected_sig(Bolygo* planet);
    signals: void planet_targeted(u8 star, Bolygo* planet);
    protected slots: void planet_selected(Bolygo* planet);
    protected slots: void emit_planet_targeted(Bolygo* planet);
};

#endif // PLANETTOOLBAR_H
